package system

import (
	"fresh-shop-gin/global"
	"fresh-shop-gin/model/system"
)

type RoleService struct {}

// 创建角色
func (r *RoleService) CreateRole(role *system.Role) error {
	if err := global.DB.Create(role).Error; err!= nil {
		return err
	}
	return nil
}

// 更新角色